package star.cloud.asme.person.ndePersonOperationRecord;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.mybatis.IBaseController;

import java.util.List;

@RestController
@RequestMapping("/person/ndePersonOperationRecord")
@RequiredArgsConstructor
public class NdePersonOperationRecordController implements IBaseController<NdePersonOperationRecord> {

    private final NdePersonOperationRecordService ndePersonOperationRecordService;

    @Override
    public Result<NdePersonOperationRecord> getOneByCondition(String columnName, Object columnValue) {
        return ndePersonOperationRecordService.getOneByCondition(columnName, columnValue);
    }

    @Override
    public Result<List<NdePersonOperationRecord>> getListByCondition(String columnName, Object columnValue) {
        return ndePersonOperationRecordService.getListByCondition(columnName, columnValue);
    }

    @Override
    public Result<List<NdePersonOperationRecord>> getListByConditions(NdePersonOperationRecord conditions) {
        return ndePersonOperationRecordService.getListByConditions(conditions);
    }

    @Override
    public Result<IPage<NdePersonOperationRecord>> getListByConditionsWithPage(NdePersonOperationRecord conditions) {
        return ndePersonOperationRecordService.getListByConditionsWithPage(conditions);
    }

    @Override
    public Result<NdePersonOperationRecord> insertOne(NdePersonOperationRecord entity) {
        return ndePersonOperationRecordService.insertOne(entity);
    }

    @Override
    public Result<NdePersonOperationRecord> updateOne(NdePersonOperationRecord entity) {
        return ndePersonOperationRecordService.updateOne(entity);
    }
}
